package com.hnust.root.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnust.root.dao.entity.domain.Manager;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

/**
 * @Author zhusir
 * @Date 2019/1/27
 * @Desc 后台用户mapper
 */
@Mapper
@Repository
public interface ManagerMapper extends BaseMapper<Manager> {

    @Select("select * from sys_user where username = #{username} or phone = #{phone}")
    Manager existManage(Manager manager);
}
